\hypertarget{class_scanner}{
\subsection{Scanner Class Reference}
\label{class_scanner}\index{Scanner@{Scanner}}
}
Used by the parser to retrieve Tokens from the source file.  


{\tt \#include $<$Scanner.h$>$}

Collaboration diagram for Scanner:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=103pt]{class_scanner__coll__graph}
\end{center}
\end{figure}
\subsubsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hyperlink{class_scanner_5e8bb6c8d21a672b7d0364b20ab0f066}{Scanner} (std::istream $\ast$\_\-in, SymbolTable::SymbolTable $\ast$\_\-symbolTable, \hyperlink{class_administration}{Administration} $\ast$\_\-admin)
\begin{CompactList}\small\item\em Constructor . \item\end{CompactList}\item 
int \hyperlink{class_scanner_81eb54361d35fd662f4558958dfb8344}{LineNum} ()
\begin{CompactList}\small\item\em Getter - lineNum. \item\end{CompactList}\item 
\hyperlink{class_token}{Token} $\ast$ \hyperlink{class_scanner_57597506c0e59cefff02a92572465db4}{nextToken} ()
\begin{CompactList}\small\item\em Retrieve the next \hyperlink{class_token}{Token}. \item\end{CompactList}\item 
\hyperlink{class_token}{Token} $\ast$ \hyperlink{class_scanner_5a8ef1fead69802094e2d64637d6e3ce}{LookAhead} ()
\begin{CompactList}\small\item\em Retrieve the look ahead \hyperlink{class_token}{Token}. \item\end{CompactList}\item 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2}{Token::TokenType} \hyperlink{class_scanner_e9a942c2173ed73924eb2b4ba75b0a2d}{findTokenType} ()
\begin{CompactList}\small\item\em Find a \hyperlink{class_token}{Token} type. \item\end{CompactList}\end{CompactItemize}


\subsubsection{Detailed Description}
Used by the parser to retrieve Tokens from the source file. 

\subsubsection{Constructor \& Destructor Documentation}
\hypertarget{class_scanner_5e8bb6c8d21a672b7d0364b20ab0f066}{
\index{Scanner@{Scanner}!Scanner@{Scanner}}
\index{Scanner@{Scanner}!Scanner@{Scanner}}
\paragraph{\setlength{\rightskip}{0pt plus 5cm}Scanner::Scanner (std::istream $\ast$ {\em \_\-in}, SymbolTable::SymbolTable $\ast$ {\em \_\-symbolTable}, {\bf Administration} $\ast$ {\em \_\-admin})}\hfill}
\label{class_scanner_5e8bb6c8d21a672b7d0364b20ab0f066}


Constructor . 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em \_\-in}]The input stream (source file) \item[{\em \_\-symbolTable}]The symbol table to use will scanning \item[{\em \_\-admin}]The \hyperlink{class_administration}{Administration} class, provides error handling \end{description}
\end{Desc}


\subsubsection{Member Function Documentation}
\hypertarget{class_scanner_81eb54361d35fd662f4558958dfb8344}{
\index{Scanner@{Scanner}!LineNum@{LineNum}}
\index{LineNum@{LineNum}!Scanner@{Scanner}}
\paragraph{\setlength{\rightskip}{0pt plus 5cm}int Scanner::LineNum ()}\hfill}
\label{class_scanner_81eb54361d35fd662f4558958dfb8344}


Getter - lineNum. 

\begin{Desc}
\item[Returns:]The line number \end{Desc}
\hypertarget{class_scanner_57597506c0e59cefff02a92572465db4}{
\index{Scanner@{Scanner}!nextToken@{nextToken}}
\index{nextToken@{nextToken}!Scanner@{Scanner}}
\paragraph{\setlength{\rightskip}{0pt plus 5cm}{\bf Token} $\ast$ Scanner::nextToken ()}\hfill}
\label{class_scanner_57597506c0e59cefff02a92572465db4}


Retrieve the next \hyperlink{class_token}{Token}. 

\begin{Desc}
\item[Returns:]A pointer to a \hyperlink{class_token}{Token} object. \end{Desc}
\hypertarget{class_scanner_5a8ef1fead69802094e2d64637d6e3ce}{
\index{Scanner@{Scanner}!LookAhead@{LookAhead}}
\index{LookAhead@{LookAhead}!Scanner@{Scanner}}
\paragraph{\setlength{\rightskip}{0pt plus 5cm}{\bf Token} $\ast$ Scanner::LookAhead ()}\hfill}
\label{class_scanner_5a8ef1fead69802094e2d64637d6e3ce}


Retrieve the look ahead \hyperlink{class_token}{Token}. 

\begin{Desc}
\item[Returns:]A pointer to a \hyperlink{class_token}{Token} object. \end{Desc}
\hypertarget{class_scanner_e9a942c2173ed73924eb2b4ba75b0a2d}{
\index{Scanner@{Scanner}!findTokenType@{findTokenType}}
\index{findTokenType@{findTokenType}!Scanner@{Scanner}}
\paragraph{\setlength{\rightskip}{0pt plus 5cm}{\bf Token::TokenType} Scanner::findTokenType ()}\hfill}
\label{class_scanner_e9a942c2173ed73924eb2b4ba75b0a2d}


Find a \hyperlink{class_token}{Token} type. 

\begin{Desc}
\item[Returns:]The \hyperlink{class_token}{Token} type \end{Desc}
